package io.github.betacatcode.learn.common;


import lombok.Data;
import lombok.Getter;

/**
 * APi返回的状态码表
 * @author cc
 * @date 2021-07-12 8:58
 */
@Getter
public enum ResultCode {
    /**
     * api状态码管理
     * @author cc
     * @date 2021-07-12 10:00
     */
    SUCCESS(200, "请求成功"),
    FAILED(500, "操作失败"),
    TOKEN_FAILED(400, "token失效");


    private int code;
    private String msg;

    private ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

}
